﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:CPPEI.Coolzon.Designer.Shell"
                    xmlns:shell="clr-namespace:Microsoft.Windows.Shell;assembly=Microsoft.Windows.Shell">

    <ControlTemplate x:Key="MainWindowControlTemplate" TargetType="{x:Type local:MainWindow}">
        <Border Background="#FFF0F0F0" >
            <ContentPresenter Margin="0" Content="{TemplateBinding Content}"/>
        </Border>
    </ControlTemplate>

    <Style x:Key="MainWindowStyle" TargetType="{x:Type local:MainWindow}">
        <Setter Property="shell:WindowChrome.WindowChrome">
            <Setter.Value>
                <shell:WindowChrome
                        ResizeBorderThickness="4"
                        
                        CaptionHeight="0"
                        CornerRadius="0"
                        GlassFrameThickness="0,0,0,0"/>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{DynamicResource MainWindowControlTemplate}"/>
    </Style>

</ResourceDictionary>